#ifdef LEI_COORDINATOR_TC35
#define IDG P1_2        //lei
#endif

#define LEI_GSM_START_EVI   0x04
#define LEI_GSM_SEND_EVI    0x08
#define LEI_BIND_REQ_EVI    0x10
#define LEI_SEND_A_EVI      0x20


#ifdef LEI_COORDINATOR_TC35
const unsigned char *strGSMCtrl = "abc1234def";
/*const*/ char* lei_BUF[]=
{"AT+CMGF=1\x0d","AT+CMGS=15327362615\x0d","CHANNEL-?\x1a"};
//{"AT\x0d","AT\x0d","AT\x0d"};
#endif

#ifdef LEI_COORDINATOR_TC35
unsigned char *tempBuf;
#endif

//uint16 nMsgPacketCnt = 0;

#ifdef LEI_COORDINATOR_TC35
static uint8 Lei_TxBuf[80+1];
#endif

afAddrType_t Lei_Flash_DstAddr;     //lei


typedef struct
{
    uint8 seqnb;
    uint8 buf[10];
} tc35Cmd_t;

tc35Cmd_t tc35CmdStr;     //lei

/*
typedef struct
{
    uint8 seqnb;
    uint8 buf[10];
} tc35Cmd_t;
*/
uint8 BufCmd[3];
uint8 LeiCmdFirstByte = 0;


#ifdef LEI_COORDINATOR_TC35
static void fnGSM_Start(void);  //lei added
static void fnGSM_Send(void);
#endif
